<template>
	<view>
		<uni-navbar :title="'选课列表'"></uni-navbar>
		<!-- 搜索 -->
		<view class="search">
			<u-search v-model="keywords" input-align="left" placeholder="搜索客户姓名或者电话" :action-text="'查询'" height="50"></u-search>
		</view>
		
		<!-- 内容 -->
		<view class="block" v-for="(item,index) in 3" :key="index">
			<view class="b-1">
				<view>南京儿牙</view>
				<view>未结清</view>
			</view>
			<view class="b-2">
				用户信息：王富贵 12645847419
			</view>
			<view class="b-2">
				课程价格：折扣价：6020元
			</view>
			<view class="b-2">
				已缴费：500元
			</view>
			<view class="b-2">
				成交人：赵小六
			</view>
			<view class="b-3">
				<text class="text" @click="$u.route('/pages/applications/supplementary_payment/supplementary_payment')">前去补款</text>
				<view @click="$u.route('/pages/applications/payment_record/payment_record')">
					<text>更多操作</text><u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>
		<view style="padding-bottom: 30rpx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keywords: ''
			}
		},
		methods: {
			toBack() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.search{
		width: 750rpx;
		background-color: #fff;
		padding: 20rpx 30rpx;
	}
	
	.block{
		width: 750rpx;
		background: #FFFFFF;
		padding: 20rpx 30rpx;
		margin-top: 20rpx;
		
		.b-1{
			display: flex;
			justify-content: space-between;
			font-family: Source Han Sans SC;
			view:nth-child(1){
				font-size: 30rpx;
				font-weight: 600;
				color: #4D4D4D;
			}
			view:nth-child(2){
				width: 88rpx;
				height: 40rpx;
				background: #F2F2F2;
				border-radius: 13rpx;
				font-size: 22rpx;
				color: #999999;
				line-height: 40rpx;
				text-align: center;
			}
		}
		.b-2{
			font-size: 24rpx;
			font-family: Source Han Sans SC;
			font-weight: 400;
			color: #999999;
			line-height: 60rpx;
		}
		.b-3{
			display: flex;
			justify-content: space-between;
			padding: 10rpx 0;
			.text{
				font-size: 24rpx;
				font-weight: 600;
				color: #FD9427;
				border-bottom: 1rpx solid #FD9427;
				line-height: 40rpx;
			}
			.text1{
				font-size: 24rpx;
				font-weight: 600;
				color: #E02D38;
				border-bottom: 1rpx solid #E02D38;
				line-height: 40rpx;
			}
			view{
				font-size: 24rpx;
				font-family: Source Han Sans SC;
				font-weight: 400;
				color: #4C4C4C;
				
				/deep/ .u-icon{
					color: #828282;
				}
			}
		}
	}
</style>
